package com.shop.cereshop.app.tencent.im.model.redpacket;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @description: 红包退款记录
 * @author zdd
 * @date 2025/9/3 14:30
 * @version 1.0
 */
@Entity
@TableName("cere_red_packet_refund_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RedPacketRefundRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 领取记录ID */
    @Id
    @TableId(value = "id", type = IdType.NONE)
    private String id;

    /** 红包ID（关联cere_red_packet表的packet_id） */
    private String packetId;

    /** 退款单号 */
    private String refundOrderId;

    /** 退款金额（单位：元） */
    private BigDecimal amount;

    /** 退款时间 */
    private LocalDateTime refundTime;

}
